package com.sx.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.sx.bean.Duty;
import com.sx.bean.PtOrgan;
import com.sx.bean.PtUser;

public interface PtUserDao {
    int deleteByPrimaryKey(String userUuid);

    int insert(PtUser record);

    int insertSelective(PtUser record);

    PtUser selectByPrimaryKey(String userUuid);

    int updateByPrimaryKeySelective(PtUser record);

    int updateByPrimaryKey(PtUser record);
    
	//获取所有User
    List<PtUser> getUsers(@Param("start")int start, @Param("pageSize")int pageSize);

    //查询User条数
	int getUsersCount();

	//根据user_uuid获取用户信息
	PtUser getOne(String id);

	//删除User,即修改status
	void updateStatusOfUser(String userUuid);

	//根据UserUuid删除该用户的岗位
	void deleteByUserUuid(String userUuid);

	//插入用户修改后的岗位信息
	void insertDuty(Duty insertDuty);
}